package net.csdn.business.common.annotation;

import net.csdn.business.common.enums.ActionTypeEnum;
import net.csdn.business.common.enums.KanbanEnum;
import java.lang.annotation.*;

/**
 * 基于组织 看板进行权限校验
 * @ClassName KanbanPermissionCheck
 * @Description TODO
 * @Author liuzhisheng
 * @Date 2023/9/26
 **/
@Documented
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface KanbanPermissionCheck {
    /**看板ID*/
    String kanbanId() default "";

    /**组织ID*/
    String orgId() default "";

    /**角色等级*/
    KanbanEnum.AccessLevelEnum level() default KanbanEnum.AccessLevelEnum.GUEST;

    ActionTypeEnum action() default  ActionTypeEnum.KANBAN_UPDATE;
}
